#ifndef DATE_H_
#define DETE_H_

#include <iostream>
#include <string>

class Date{
    public:
        void SetYear(int year);

        void SetMonth(int month);

        void SetDay(int day);

        int GetYear();

        int GetMonth();

        int GetDay();

        // get the interval
        int DaysInterval(Date& data);

        // 由于闰年导致计算天数时应多算一天
        int PrimeGain(int);

        // 2-29 前或后
        int CmpPrim();

    public:
        Date();

        Date(int y, int m, int d);
        
        // ~Date();

    private:
        int year_;
        int month_;
        int day_;
        int daym[12] = {31,28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
};


#endif